#include"UdpServer.hpp"

#include <iostream>
#include <memory>


int main(int argc,char* argv[])
{
    if(argc != 2)
    {
        std :: cerr << "Server failed" << std :: endl;
        exit(1);
    }
    // std::string _ip = argv[1];
    uint16_t _port = std::stoi(argv[1]);
    //UdpServer(int socket1 = deafulet,std :: string ip,int port)
    Enable_Console_Log_Strategy();
    std::unique_ptr<UdpServer> usvr = std::make_unique<UdpServer>(_port);
    usvr ->Init();
    usvr -> Start();
    return 0;
}